package com.bibrApp.difu.actvity.others;


import android.content.Intent;
import android.widget.Toast;

import com.bibrApp.difu.R;
import com.bibrApp.difu.actvity.beginner_guide_mvp.BeginnerGuideActivity;
import com.bibrApp.difu.base.BaseActivity;

import butterknife.OnClick;

public class HelpActivity extends BaseActivity<OtherPresenter> implements IOtherView {

    @Override
    protected void initPresenter() {
        presenter = new OtherPresenter(this, this);
        presenter.init();
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_help;
    }

    @OnClick(R.id.bt_back)
    public void backClick() {
        finish();
    }

    @OnClick(R.id.tv_guide)
    public void guideClick() {
        startActivity(BeginnerGuideActivity.class);
    }

    @OnClick(R.id.tv_help)
    public void helpClick() {
        startActivity(HelpCenterActivity.class);
    }

    @OnClick(R.id.tv_gonggao)
    public void ggonggaoClick() {
        startActivity(AnnouncementActivity.class);
    }

    @OnClick(R.id.tv_hezuo)
    public void hezuoClick() {
        startActivity(OrganizationActivity.class);
    }

    @OnClick(R.id.tv_xieyi)
    public void xieyiClick() {
        Intent intent = new Intent(this, WebActivity.class);
        intent.putExtra("title", "用户协议");
        intent.putExtra("url", "file:////android_asset/userprotocol.html");
        startActivity(intent);
    }

    @OnClick(R.id.tv_udun)
    public void udunClick() {
        Intent intent = new Intent(this, WebActivity.class);
        intent.putExtra("title", "U盾服务条款");
        intent.putExtra("url", "file:////android_asset/userviceprotocol.html");
        startActivity(intent);
    }


    @Override
    public void error(String msg) {

    }

    @Override
    public void success(String msg) {

    }

    @Override
    public void initView() {

    }
}
